package com.systop.busafter.journalism.service.impl;
import com.systop.busafter.journalism.mapper.JsmMapper;
import com.systop.busafter.journalism.service.JsmService;
import com.systop.commer.pojo.Journalism;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class JsmServiceImpl implements JsmService {

    @Autowired
    private JsmMapper jsmMapper;


    @Override
    public int updatajournalism(Journalism journalism) {
        return jsmMapper.updatajournalism(journalism);
    }

    @Override
    public int insertjournalism(Journalism journalism) {
        return jsmMapper.insertjournalism(journalism);
    }

    @Override
    public List<Journalism> journalismListall() {
        return jsmMapper.journalismListall();
    }

    @Override
    public List<Journalism> journalismIdlist(int journalism_id) {
        return jsmMapper.journalismIdlist(journalism_id);
    }

    @Override
    public int deletejournalism(int journalism_id) {
        return jsmMapper.deletejournalism(journalism_id);
    }

    @Override
    public List<Journalism> journalismstatelist(int journalism_state) {
        return jsmMapper.journalismstatelist(journalism_state);
    }

    @Override
    public List<Journalism> journalismstate(int journalism_state) {
        return jsmMapper.journalismstate(journalism_state);
    }

    @Override
    public int updatajournastate(Journalism journalism) {
        return jsmMapper.updatajournastate(journalism);
    }
}
